package cn.rkylin.oms.system.dailyIncomeReport.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.PageInfo;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.system.dailyIncomeReport.vo.DailyIncomeReportVO;

@Repository(value = "dailyIncomeReportDAO")
public class DailyIncomeReportDAOImpl implements IDailyIncomeReportDAO{
	
    @Autowired
    protected IDataBaseFactory dao;
    
    private static final String STATEMENT_PAGE_SELECT_BY_CONDITION = "pageSelectDailyIncomeReport";
    
    /**
     * getDailyIncomeReport:查询日收支报表
     */
	@Override
	public PageInfo<DailyIncomeReportVO> getDailyIncomeReport(int page, int length,
			DailyIncomeReportVO dailyIncomeReportVO) throws Exception {
        return dao.findPage(page, length, STATEMENT_PAGE_SELECT_BY_CONDITION, dailyIncomeReportVO);
	}

}
